/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package studio7i;

import java.io.*;
//import java.util.logging.Level;
//import java.util.logging.Logger;

/**
 *
 * @author Microsoft
 */
public class BuscaSalaE {
    String [][] Aescogidos = new String [100][5];
        public String [][] coincide = new String [100][5];//para forzar
    public void recorreCoincidencias(){

    for (int i=0;i<100;i++){
        //for (int ii=0;ii<5;ii++)
            System.out.println("Registro"+i+"  "+coincide[i][0]+" "+coincide[i][1]
                    +" "+coincide[i][2]+" "+coincide[i][3]+" "+coincide[i][4]+" "+coincide[i][5]);
        if(coincide[i][0]=="")
            i=100;

    }
    }
    public Boolean HayRec(){
        for (int i=0;i<100;i++){
        if(coincide[i][0]==""){
            i=100;
            return true;
        }else return false;
    }
        return false;
}
    public void recorreCoincidencias2(int puntero){
        try {
            //String [][] Aescogidos = new String [100][5];
            int i = 0;
            for (i = 0; i < 100; i++) {
                //for (int ii=0;ii<5;ii++)
                System.out.println("Registro" + i + "  " + coincide[i][0] + " " + coincide[i][1] + " " + coincide[i][2] + " " + coincide[i][3] + " " + coincide[i][4] + " " + coincide[i][5]);
//        if(coincide[i][0]=="")
//            i=100;
            }
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            boolean bsalir=false;
            //do{
                System.out.println("Escoga una del 0 al" + i);
                String opcion = in.readLine();
                int nopcion=Integer.parseInt(opcion);
                Aescogidos[nopcion][0]=coincide[nopcion][0];
                Aescogidos[nopcion][1]=coincide[nopcion][1];
                Aescogidos[nopcion][2]=coincide[nopcion][2];
                Aescogidos[nopcion][3]=coincide[nopcion][3];
                Aescogidos[nopcion][4]=coincide[nopcion][4];
                Aescogidos[nopcion][5]=coincide[nopcion][5];
                puntero=nopcion;
               // if(nopcion==100) bsalir=true;
           // }while(!bsalir);
        } catch (IOException ex) {
            //Logger.getLogger(BuscaSalaE.class.getName()).log(Level.SEVERE, null, ex);
        }
    }


}